package com.net.xpay.web.controller.common;


import com.net.common.model.ResultData;
import com.net.xpay.core.model.CollectionSafePayOrderModel;
import com.net.xpay.core.service.safePay.CollectionSafePayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/common/collection-safe-pay-order")
@Api(tags = "公共/收集收款信息", description = "公共 收集收款信息 net")
public class CommonCollectionSafePayOrderController {

    @Autowired
    private CollectionSafePayService collectionSafePayService;


    /**
     * 新增收款信息
     */
    @ApiOperation("新增收款信息")
    @PostMapping
    public ResultData<Boolean> addCollectionSafePayOrder( @RequestBody CollectionSafePayOrderModel model) {
        collectionSafePayService.addCollectionSafePayOrder(model);
        return new ResultData<>(true);
    }


}
